import request from '@/utils/request'

// 查询语言编组列表
export function listLanguageGroup(query) {
  return request({
    url: '/business/LanguageGroup/list',
    method: 'get',
    params: query
  })
}


// 查询语言编组列表
export function listLanguageGroupByMine(query) {
  return request({
    url: '/business/LanguageGroup/myList',
    method: 'get',
    params: query
  })
}

// 查询语言编组详细
export function getLanguageGroup(languageGroupId) {
  return request({
    url: '/business/LanguageGroup/' + languageGroupId,
    method: 'get'
  })
}

// 新增语言编组
export function addLanguageGroup(data) {
  return request({
    url: '/business/LanguageGroup',
    method: 'post',
    data: data
  })
}

// 修改语言编组
export function updateLanguageGroup(data) {
  return request({
    url: '/business/LanguageGroup',
    method: 'put',
    data: data
  })
}

// 删除语言编组
export function delLanguageGroup(languageGroupId) {
  return request({
    url: '/business/LanguageGroup/' + languageGroupId,
    method: 'delete'
  })
}
